import 'package:ty_smart_watch/common/function_id.dart';
import 'package:ty_smart_watch/common/images_url.dart';

class WatchSettingBean {
  final int id;
  final String imgUrl;
  final String name;

  WatchSettingBean(this.id, this.imgUrl, this.name);
}

class WatchSettingType {
  String getTitle(int index) {
    switch (index) {
      case 0:
        return "手表设置";
      case 1:
        return "健康数据设置";
      case 2:
        return "其他功能设置";
      default:
        return "手表设置";
    }
  }

  List<WatchSettingBean> getList(int index) {
    switch (index) {
      case 0:
        return _watchSettingList;
      case 1:
        return _healthSettingList;
      case 2:
        return _otherSettingList;
      default:
        return _healthSettingList;
    }
  }

  //健康设置
  final List<WatchSettingBean> _healthSettingList = [
    WatchSettingBean(STEP_TARGET, STEP_TARGET_SETTING, "记步目标"),
    WatchSettingBean(LONG_SIT, LONG_SIT_SETTING, "久坐提醒"),
    WatchSettingBean(TIME_HEART, HEART_SETTING, "定时心率提醒"),
    WatchSettingBean(DRINK_REMIND, DRINK_SETTING, "喝水提醒"),
    WatchSettingBean(MEDICINE_REMIND, MEDICINE_SETTING, "吃药提醒"),
    WatchSettingBean(PERIOD, PERIOD_SETTING, "生理期设置"),
    WatchSettingBean(TIMING_BODY_TEMPERATURE, TEMPERATURE_SETTING, "定时体温设置"),
  ];

  //手表设置
  final List<WatchSettingBean> _watchSettingList = [
    WatchSettingBean(BRIGHTEN_SCREEN_TIME, BRIGHTNESS_SETTING, "亮屏时间"),
    WatchSettingBean(SHAKE, SHART_SETTING, "震动设置"),
    WatchSettingBean(HAND_BRIGHTEN_SCREEN, HAND_UP_BRIGHTNESS_SETTING, "抬手亮屏设置"),
    WatchSettingBean(HOUR_TYPE, HOUR_TYPE_SETTING, "12/24小时设置"),
    WatchSettingBean(LANGUAGE, LANGUAGE_SETTING, "手表语言设置"),
    WatchSettingBean(ANTI_LOST, LOST_SETTING, "防丢设置"),
    WatchSettingBean(INCH_TYPE, INCH_TYPE_SETTING, "公英制设置"),
    WatchSettingBean(TEMPERATURE_TYPE, TEMPERATURE_UNIT_SETTING, "温度单位"),
  ];

  //其他设置
  final List<WatchSettingBean> _otherSettingList = [
    WatchSettingBean(ALARM, FIND_PHONE_SETTING, "闹钟设置"),
    WatchSettingBean(DO_NOT_DISTURB, DO_NOT_DISTURB_SETTING, "勿扰设置"),
    WatchSettingBean(NOTIFICATION_SWITCH, NOTIFICATION_SETTING, "消息通知"),
    WatchSettingBean(SOS, SOS_SETTING, "SOS设置"),
    WatchSettingBean(FIND_WATCH, FIND_PHONE_SETTING, "查找手表"),
  ];
}
